package router

import (
	"github.com/gin-gonic/gin"
	"github.com/smash-llj/Nexa-server/api"
)

func InitAiRouters() {
	RegisterRoute(func(rgPublic *gin.RouterGroup, tgAuth *gin.RouterGroup) {
		Ai := api.NewAiApi()
		aiPrivateUserRouter(tgAuth, Ai)
	})
}

func aiPrivateUserRouter(tgAuth *gin.RouterGroup, api api.AiApi) {
	tgAuth.GET("/getAiSessionList", api.GetAiSessionGroup)
	tgAuth.DELETE("/deleteAiSession/:sessionId", api.DeleteAiSession)
	tgAuth.GET("/createAiSession", api.CreateAiSessionGroup)
	tgAuth.POST("/getAIMessageList", api.GetAIMessageList)
	tgAuth.POST("/askAi", api.AskAI)
}
